package nc.ui.lm.ct.helper;

import nc.ui.bill.pub.LongTimeTask;
import nc.vo.ct.ct0104.TermsetVO;
import nc.vo.ct.pub.TermBb4VO;

public class CtHelper {
	
	private static String bo = "nc.bs.ct.lm.ct0204.CtDo";
	public static TermsetVO[] queryTermsetVOs(String strWhere) throws Exception{
		Class[] ParameterTypes = new Class[]{String.class};
		Object[] ParameterValues = new Object[]{strWhere};
		Object o = LongTimeTask.callRemoteService("ct",bo, "queryTermsetVOs", ParameterTypes, ParameterValues, 2);
		return o==null?null:(TermsetVO[])o;
	}
	
	public static TermBb4VO[] savePactItemsForPO(TermsetVO[] term,String id,String pk_corp) throws Exception{
		Class[] ParameterTypes = new Class[]{TermsetVO.class,String.class,String.class};
		Object[] ParameterValues = new Object[]{term,id,pk_corp};
		Object o = LongTimeTask.callRemoteService("ct",bo, "savePactItemsForPO", ParameterTypes, ParameterValues, 2);
		return o==null?null:(TermBb4VO[])o;
	}
}
